#include "ROHost.h"
#include "ROPlayer.h"

ROPlayer::ROPlayer()
{

}

bool ROPlayer::isHostPlayer()
{
    return channel == nullptr;
}

int ROPlayer::playerId() const
{
    return m_playerId;
}

void ROPlayer::kick(QString message)
{
    m_host->kickPlayer(this,message);
}

void ROPlayer::setPlayerId(int newPlayerId)
{
    if (m_playerId == newPlayerId)
        return;
    m_playerId = newPlayerId;
    emit playerIdChanged();
}
